import dayjs from 'dayjs'

//  获取最近7天的日期
// const Arr = [];
const GetDay = (num) => {
    let Date = dayjs()
    let arrNew = []
    for (let i = num - 1; i > -1; i--) {
        arrNew.push(Date.subtract(i, 'day').format('MM.DD'))
    }
    return arrNew
}

export const GetDates7 = GetDay(7)
